#include "projectwidget.h"

#include "../../lib/corelib/styledbar.h"
#include "../../include/abstractcore.h"


#include "qprojectsettingwidget.h"

#include <QVBoxLayout>
#include <QScrollArea>

ProjectWidget::ProjectWidget(AbstractCore *core, QWidget *parent) :
    QMainWindow(parent),
    m_core(core)
{

    m_stylebar=new StyledBar(this);

    QScrollArea *scroll;
    QVBoxLayout *l;


    scroll=new QScrollArea(this);
    l=new QVBoxLayout();
    l->setMargin(0);
    l->setSpacing(0);

    l->addWidget(m_stylebar);
    l->addWidget(scroll);

    QWidget *wid=new QProjectSettingWidget(m_core);


    scroll->setFrameStyle(QFrame::NoFrame);
    scroll->setWidget(wid);
    scroll->setAlignment(Qt::AlignCenter);

    setCentralWidget(new QWidget);
    centralWidget()->setLayout(l);
}
